|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectcom.epiphan.vga2usb.BasicFrame
com.epiphan.vga2usb.RawFrame
A single grabbed frame in arbitrary format supported by VGA2USB
hardware. Gives the client direct access to the pixel buffer. Unlike
the Frame
class, it doesn't provide a convenient way to
transform pixels into an Image
. It's up to the client
to decide what to do with the raw pixels.
Frame
,
Grabber
Field Summary | |
protected PixelFormat |
format
The pixel format. |
protected int |
height
Frame height. |
protected int |
length
Part of the pixels array which is actually occupied by pixels. |
protected byte[] |
pixels
Frame pixels. |
protected int |
width
Frame width. |
Method Summary | |
int |
getHeight()
Returns the height of the frame (number of rows). |
byte[] |
getPixelBuffer()
Gives the caller direct access to the pixel buffer. |
int |
getPixelBufferLength()
Returns number of bytes in the pixel buffer that are actually occupied by pixel data. |
PixelFormat |
getPixelFormat()
Get the pixel format. |
int |
getWidth()
Returns the width of the frame (number of columns). |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected PixelFormat format
protected int height
protected int length
protected byte[] pixels
protected int width
Method Detail |
public byte[] getPixelBuffer()
getPixelBufferLength()
method. The rest
of the array should be ignored.
getPixelBufferLength()
public int getPixelBufferLength()
getPixelBuffer()
public PixelFormat getPixelFormat()
public final int getHeight()
public final int getWidth()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |